<template>
    <el-form-item label="可选范围">
        <el-select v-model="optionModel.selectType">
            <el-option :label="item.label" :value="item.value" v-for="(item, index) in userSelectTypeOptions"
                :key="index"></el-option>
        </el-select>
    </el-form-item>
</template>

<script>
const selectTypeOptions = [{
    value: 'all',
    label: '全部'
}, {
    value: 'custom',
    label: '自定义'
}]
const userSelectTypeOptions = [
    ...selectTypeOptions,
    {
        value: 'dep',
        label: '部门组件联动'
    },
    {
        value: 'pos',
        label: '岗位组件联动'
    },
    {
        value: 'role',
        label: '角色组件联动'
    },
    {
        value: 'group',
        label: '分组组件联动'
    },
]
import i18n from "@/utils/i18n"

export default {
    name: "selectType-editor",
    mixins: [i18n],
    props: {
        designer: Object,
        selectedWidget: Object,
        optionModel: Object,
    },
    data() {
        return{
            userSelectTypeOptions
        }
    }

}
</script>

<style scoped></style>